package com.dianshang.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.dianshang.domain.dto.ItemDTO;
import com.dianshang.domain.po.Item;
import com.dianshang.service.IItemService;
import com.utils.BeanUtils;
import com.dianshang.mapper.ItemMapper;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 商品表 服务实现类
 * </p>
 *
 * @author 虎哥
 */
@Service
public class ItemServiceImpl extends ServiceImpl<ItemMapper, Item> implements IItemService {


    @Override
    public List<ItemDTO> queryItemByIds(Collection<Long> ids) {
        return BeanUtils.copyList(listByIds(ids), ItemDTO.class);
    }
}
